package com.xx.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.xx.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeService {

    //查询
    PageInfo<Employee> getList(@Param("empName") String empName,
                                @Param("jobTitle") String jobTitle,
                                @Param("pageNum") Integer pageNum);

    //获取详情
    Employee getEmployeeInfo(@Param("employeeId") Integer employeeId);

    //分页
    PageInfo<Employee> getPage(@Param("empName") String empName,
                               @Param("jobTitle") String jobTitle,
                                @Param("pageNum") Integer pageNum);

    //新增员工
    public int saveEmployee(Employee employee);

    //修改
    public int updateEmployee(Employee employee);

    //删除
    public int delEmployee(@Param("employeeId") Integer employeeId);
}
